import request from '@/utils/request'
//经济人认证接口
export function jjrAuth(data){
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/often/XfJjpSysUserLingGong/addaAuthBroker`,
		data
	})
}
//获取个人信息
export function getUserInfo() {
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/often/XfJjpSysUserLingGong/queryByIdXfUserIdTwo`
		
	})
}
// 首页企业列表
export function getCompanyLis(data){
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/xfJjpOddjibBrokerRelation/queryComListByBrokerId`,
		data,
		options:{
			load:false
		}
	})
}
//添加企业
export function addBrokerCom(data){
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/xfJjpOddjobCompany/addBrokerCom`,
		data
	})
}
// 获取编辑企业信息
export function comPanyFeedback(data){
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/xfJjpOddjobCompany/comPanyFeedback`,
		data,
		options:{
			load:false
		}
	})
}
//编辑企业接口
export function comPanyInfoEdit(data){
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/xfJjpOddjobCompany/comPanyInfoUpdateId`,
		data
	})
}
//获取公司详情接口
export function getCompanyInfo(data) {
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjpoddjob/licensefree/Company/queryByIdInVo`,
		data

	})
}
//企业招工上半部分信息
export function queryComUpPart(data) {
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/xfJjpOddjibBrokerRelation/queryComUpPart`,
		data,
		options:{
			load:false
		}

	})
}
//获取企业在招职位
export function queryCompanyJob(data) {
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/xfJjpOddjibBrokerRelation/queryComInfoListByBrokerId`,
		data,
		options:{
			load:false
		}

	})
}

//首页个人列表
export function getUserLis(data){
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/xfJjpOddjibBrokerRelation/queryUserListByBrokerId`,
		data,
		options:{
			load:false
		}
	})
}
//添加人员列表
export function brokerSaveUser(data){
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/often/XfJjpSysUserLingGong/brokerSaveUser`,
		data
	})
}
// 获取编辑个人信息
export function brokerUpdateUserFeedback(data){
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/often/XfJjpSysUserLingGong/brokerUpdateUserFeedback`,
		data
		
	})
}
// 获取编辑个人信息
export function brokerUpdateUser(data){
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong//jjp/often/XfJjpSysUserLingGong/brokerUpdateUser`,
		data
		
	})
}
export function getBrokerUser(data){
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/xfJjpOddjibBrokerRelation/queryUserUpPart`,
		data
	})
}
export function getBrokerJobLis(data){
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/xfJjpOddjibBrokerRelation/queryInfoListInBroker`,
		data
	})
}
export function recommendJob(data){
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/xfJjpOddjobDispatching/dispatch`,
		data
	})
}
export function queryRecommendRecord(data){
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/xfJjpOddjibBrokerRelation/queryRecommendRecord`,
		data
	})
}
export function unBind(data){
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/xfJjpOddjibBrokerRelation/BrokerUnbindUser`,
		data
	})
}

//经纪人端添加工作接口
export function addJobTwo(data){
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/xfJjpOddjobInfo/addTwo`,
		data
	})
}
//获取企业端职位接口详情
export function getJobInfoEno(data){
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/xfJjpOddjibBrokerRelation/queryComInfoByBrokerId`,
		data
	})
}
export function getTjUserLis(data){
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/xfJjpOddjibBrokerRelation/queryRecommendListByBrokerId`,
		data,
		options:{
			load:false
		}
	})
}
export function getBmUserLis(data){
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/xfJjpOddjibBrokerRelation/queryEnrollListByBrokerId`,
		data,
		options:{
			load:false
		}
	})
}

// 用户协议、政策、须知
export function getAgreement(){
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjpoddjob/licensefree/getAgreement`,
		data: {
			agreement: "ZWFBXZ" 
		},
		options:{
			load:false
		}
	})
}

// 经纪人-主页 收益情况
export function getBrokerIncome(data){
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/xfJjpOddjobPayment/getBrokerIncome`,
		data
	})
}